<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js sidebar-large lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js sidebar-large lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js sidebar-large lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="zh-cn" class="no-js sidebar-large"> <!--<![endif]-->
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
	<!--[if IE]>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<![endif]-->
	<meta name="renderer" content="webkit">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimal-ui, user-scalable=no">
	<meta name="description" content="" />
	<meta name="author" content="dedemao" />
	<title><?php echo $cfg_softname." ".$cfg_version; ?></title>
	<link href="res/css/bootstrap.min.css" rel="stylesheet" />
	<link href="res/css/bootstrapreset.css" rel="stylesheet" />
	<link href="res/css/pxgridsicons.min.css" rel="stylesheet" />
	<link href="res/css/style.css" rel="stylesheet" />
	<link href="res/css/responsive.css" rel="stylesheet" media="screen"/>
	<link href="res/css/animation.css" rel="stylesheet" />
	<script src="res/js/jquery.min.js"></script>
	<!--[if lt IE 9]>
	<script src="res/js/html5shiv.js"></script>
	<script src="res/js/respond.min.js"></script>
	<![endif]-->

	<!--[if lt IE 8]>
	<link rel="stylesheet" href="res/css/ie7/ie7.css">
	<!<![endif]-->

	<!--[if IE]>
	<div id="fuckie" class="text-warning fade in mb_0">
		<button data-dismiss="alert" class="close" type="button">×</button>
		<strong>DEDECMS在谷歌浏览器下体验更好！速度更快！</strong> <a href="http://www.google.cn/intl/zh-CN/chrome/" target="_blank">点击下载谷歌浏览器</a>
	</div>
	<![endif]-->

	<!--[if lte IE 8]>
	<div id="fuckie" class="text-warning fade in mb_0">
		<button data-dismiss="alert" class="close" type="button">×</button>
		<strong>您正在使用低版本浏览器，</strong> 在本页面的显示效果可能有差异。建议您升级到<a href="http://www.google.cn/intl/zh-CN/chrome/" target="_blank">Chrome</a>
		或以下浏览器：<a href="https://www.mozilla.org/zh-CN/firefox/new/" target="_blank">Firefox</a> /<a href="http://www.apple.com.cn/safari/" target="_blank">Safari</a> /<a href="http://www.opera.com/" target="_blank">Opera</a> /<a href="http://windows.microsoft.com/zh-cn/internet-explorer/download-ie" target="_blank">Internet Explorer 11</a>
	</div>
	<![endif]-->
</head><body class="login-body">
<div class="container fadeInDown">
	<form class="form-signin" id="form_login" name="form1" method="post" action="login.php" onsubmit="return checkform();">
		<input type="hidden" name="dopost" value="login" />
		<input name='adminstyle' type='hidden' value='newdedecms' />
		<div class="form-signin-heading"></div>
		<div class="login-wrap">
			<div class="loginlogo center"><img src="res/images/login_logo.png"></div>
			<div class="form-group">
				<div class="input-group" id="username_error">
					<div class="input-group-addon">
						<i class="icon-user"></i>
					</div>
					<input type="text" class="form-control" name="userid" id="username" placeholder="用户名" autocomplete="off" autofocus>
				</div>
			</div>
			<div class="form-group">
				<div class="input-group" id="password_error">
					<div class="input-group-addon">
						<i class="icon-key5"></i>
					</div>
					<input type="password" class="form-control" name="pwd" id="password" placeholder="密码" autocomplete="off">
				</div>
			</div>
			<div class="form-group">
				<div class="input-group" id="codeid_error">
					<div class="input-group-addon">
						<i class="icon-qrcode"></i>
					</div>
					<input type="text" id="codeid" name="validate" class="form-control" placeholder="验证码" onfocus="javascript:document.getElementById('code_img').src='../include/vdimgck.php?rd='+Math.random();void(0);">
					<div class="input-group-addon" id="logincode">
						<img src="res/images/logincode.gif" id="code_img" alt="点击刷新" onclick="javascript:this.src='../include/vdimgck.php?rd='+Math.random();void(0);">
					</div>
				</div>
			</div>
			<button type="submit" name="submit" class="btn btn-shadow btn-danger btn-block btn-login">登 录</button>
		</div>
		<div class="form-signin-bottom center">Powered by <a href="http://www.dedecms.com" title="DedeCMS官网"><strong>DedeCMS<?php echo $cfg_version; ?></strong></a>&copy; 2004-2011 <a href="http://www.desdev.cn" target="_blank">DesDev</a> Inc.</div>
	</form>
</div>
<script src="res/js/bootstrap.min.js"></script>
<script src="res/js/focuse.js"></script>
<script type="text/javascript">
	function addclass_slide(id,errid,classname) {
		$('#'+id).animate({
			opacity: 'show'
		}, 1000,function() {
			$('#'+errid).addClass(classname);
		});


	}
	function checkform() {
		$('#username_error').removeClass('validate-has-error');
		$('#password_error').removeClass('validate-has-error');
		$('#codeid_error').removeClass('validate-has-error');
		if($('#username').val()=='') {
			addclass_slide('username','username_error','validate-has-error');
			$('#username').focus();
			return false;
		}
		if($('#password').val()=='') {
			addclass_slide('password','password_error','validate-has-error');
			$('#password').focus();
			return false;
		}
		if($('#codeid').val()=='') {
			addclass_slide('codeid','codeid_error','validate-has-error');
			$('#codeid').focus();
			return false;
		}
	}



	$(function(){

		if(top.location.href != self.location.href){
			$('#form_login').attr('target','top');
		}

	});
</script>
</body>
</html>